package com.itshen.mapper;

import com.itshen.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    User getByUsername(String username);

    @Insert("insert into user (username,password) values (#{username},#{password}) ")
    void insert(String username, String password);


}
